function setStyle()
{
			var inputCollection=document.getElementsByTagName("INPUT");
			for(i=0;i<inputCollection.length;i++)
			{
				var type=inputCollection[i].getAttribute("type");
				if(type=="submit"||type=="button"||type=="reset")
				{
					var intOffsetWidth = inputCollection[i].offsetWidth;	
							if(intOffsetWidth<74)
								inputCollection[i].className="buttonStyle_short";
							else if(intOffsetWidth>74 && intOffsetWidth<100)
								inputCollection[i].className="buttonStyle_middle";
							else if(intOffsetWidth>100 && intOffsetWidth<140 )
							{
								inputCollection[i].className="buttonStyle_long";
							}
							else if(intOffsetWidth>=140)
							{
								inputCollection[i].className="buttonStyle180";
							}
							else
								inputCollection[i].className="buttonStyle_middle";
				
				}
				
				if(type=="text"||type=="password")
				{

					inputCollection[i].className="txtStyle";				
				}
				
			}
			inputCollection=document.getElementsByTagName("textarea");
			for(i=0;i<inputCollection.length;i++)
			{
				inputCollection[i].className="textarea";
			}
			
			inputCollection=document.getElementsByTagName("file");
			for(i=0;i<inputCollection.length;i++)
			{
				inputCollection[i].className="fileStyle";
			}
}
